package com.kyle.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
@Table(name="datacollection")
public class DataCollection implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	
	//外键
	@Column(name="userid",unique=false,nullable=true)
	private int userid;
	
	//真实姓名
	@Column(name="truename",unique=false,nullable=true)
	private String truename;
	
	@Column(name="tel",unique=false,nullable=true)
	private String tel;
	
	@Column(name="photoimg",unique=false,nullable=true)
	private String photoimg;
		
	@Column(name="time",unique=false,nullable=true)
	private String time;
	
	@Column(name="lat",unique=false,nullable=true)
	private String lat;
	
	@Column(name="lng",unique=false,nullable=true)
	private String lng;
	
	@Column(name="address",unique=false,nullable=true)
	private String address;
	
	@Column(name="txt",unique=false,nullable=true)
	private String txt;
	
	@Column(name="state",unique=false,nullable=true)
	private int state;//1-正常 2-异常 0-未检测
	
	@Column(name="iscomplete",unique=false,nullable=true)
	private int iscomplete;//0-未来解决 1-已解决
	
	
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getPhotoimg() {
		return photoimg;
	}

	public void setPhotoimg(String photoimg) {
		this.photoimg = photoimg;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getLat() {
		return lat;
	}

	public void setLat(String lat) {
		this.lat = lat;
	}

	public String getLng() {
		return lng;
	}

	public void setLng(String lng) {
		this.lng = lng;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getTxt() {
		return txt;
	}

	public void setTxt(String txt) {
		this.txt = txt;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public int getIscomplete() {
		return iscomplete;
	}

	public void setIscomplete(int iscomplete) {
		this.iscomplete = iscomplete;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getTruename() {
		return truename;
	}

	public void setTruename(String truename) {
		this.truename = truename;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}
	
	
}
